<!--<?php debug($order)?>
--><div class="students form">
<fieldset>
 <legend><?php __('<b>Информация о студенте</b>');?></legend>
     <table width="100%" border="0" cellspacing="10" cellpadding="0" bgcolor="#CCCCCC">
       <tr>
         <td>ФИО</td>
         <td><?php  echo $student[0]['Studentinfo']['fio']; ?></td>
         <td>ФИО на английском</td>
         <td><?php  echo $student[0]['Studentinfo']['eng_fio']; ?></td>
         <td>Пол</td>
         <td><?php  echo $student[0]['Gender']['name']; ?></td>
       </tr>
       <tr>
         <td>Гражданство</td>
         <td><?php  echo $student[0]['Citizenship']['name']; ?></td>
         <td>Иностранный язык</td>
         <td><?php  echo $student[0]['Foreignlanguage']['name']; ?></td>
         <td>Номер бухгалтерии</td>
         <td><?php  echo $student[0]['Studentinfo']['number_acc']; ?></td>
         
       </tr>
       <tr>
         <td>Линия обучения</td>
         <td><?php  echo $student[0]['Educationline']['name']; ?></td>
         <td>Номер транс рашен</td>
         <td><?php  echo $student[0]['Studentinfo']['number_eduline']; ?></td>
         <td>Дата поступления</td>
         <td><?php  echo $student[0]['Studentinfo']['enrollmentdate']; ?></td>
       </tr>
       <tr>
         <td>Место рождения</td>
         <td><?php  echo $student[0]['Studentinfo']['passport_birthplace']; ?></td>
         <td>Дата рождения</td>
         <td><?php  echo $student[0]['Studentinfo']['passport_birthdate']; ?></td>
         <td>Паспорт номер</td>
         <td><?php  echo $student[0]['Studentinfo']['passport_number']; ?></td>
       </tr>
       <tr>
         <td>Телефон</td>
         <td><?php  echo $student[0]['Studentinfo']['phone']; ?></td>
         <td>Мобильный</td>
         <td><?php  echo $student[0]['Studentinfo']['mobile']; ?></td>
         <td>email</td>
         <td><?php  echo $student[0]['Studentinfo']['email']; ?></td>
         <!--<td>Информация</td>
         <td><?php  echo $student[0]['Studentinfo']['moreinfo']; ?></td>
       --></tr>
       <tr>
         <td>Тип визы</td>
         <td><?php  if (isset($visastype[0]['Visastype']['name'])) {
                       echo $visastype[0]['Visastype']['name'];
                    } ?></td>
         <td>Дата выдачи визы</td>
         <td><?php  if (isset($visastype[0]['Visastype']['issue_date'])) {
                       echo $student[0]['Visa'][0]['issue_date'];
                    } ?></td>
         <td>Срок действия с</td>
         <td><?php  if (isset($visastype[0]['Visastype']['entry_from'])) {
                       echo $student[0]['Visa'][0]['entry_from'];
                    } ?></td>
         <!--<td>Срок действия по</td>
         <td><?php  if (isset($visastype[0]['Visastype']['stay_until'])) {
                       echo $student[0]['Visa'][0]['stay_until'];
                    } ?></td>
       --></tr>
       <tr>
         <td>Контракт ирфо</td>
         <td><?php  if (isset($student[0]['Contract'][0]['info'])) {
                       echo $student[0]['Contract'][0]['info'];
                    } ?></td>
         <td>С</td>
         <td><?php  if (isset($student[0]['Contract'][0]['from'])) {
                       echo $student[0]['Contract'][0]['from'];
                    } ?></td>
         <td>По</td>
         <td><?php  if (isset($student[0]['Contract'][0]['until'])) {
                       echo $student[0]['Contract'][0]['until'];
                    } ?></td>
       </tr>
       <tr>
         <td>Медкомиссия год</td>
         <td><?php  if (isset($student[0]['Medcomission'][0]['year'])) {
                       echo $student[0]['Medcomission'][0]['year'];
                    } ?></td>
         <td>Медкомиссия с</td>
         <td><?php  if (isset($student[0]['Medcomission'][0]['from'])) {
                       echo $student[0]['Medcomission'][0]['from'];
                    } ?></td>
         <td>Медкомиссия по</td>
         <td><?php  if (isset($student[0]['Medcomission'][0]['until'])) {
                       echo $student[0]['Medcomission'][0]['until'];
                    } ?></td>
       </tr>
       <tr>
         <td>Документы соответствия среднего образования Российскому среднему образованию</td>
         <td><?php  if (isset($student[0]['Mideduadequacydoc'][0]['info'])) {
                       echo $student[0]['Mideduadequacydoc'][0]['info'];
                    } ?></td>
         <td>Адекватность</td>
         <td><?php  if (isset($student[0]['Mideduadequacydoc'][0]['adequacy']) and ($student[0]['Mideduadequacydoc'][0]['adequacy'] == 1)) {
                       echo 'Соответствует';
                    } elseif (isset($student[0]['Mideduadequacydoc'][0]['inprocess']) and ($student[0]['Mideduadequacydoc'][0]['inprocess'] == 1)) {
                       echo 'Проверяется';
                    }?></td>
       </tr>
       <tr>
         <td>Страховка тип</td>
         <td><?php  if (isset($insurance[0]['Insurance']['name'])) {
                       echo $insurance[0]['Insurance']['name'];
                    } ?></td>
         <td>Страховка с</td>
         <td><?php  if (isset($student[0]['Studentinsurance'][0]['from'])) {
                       echo $student[0]['Studentinsurance'][0]['from'];
                    } ?></td>
         <td>Страховка по</td>
         <td><?php  if (isset($student[0]['Studentinsurance'][0]['until'])) {
                       echo $student[0]['Studentinsurance'][0]['until'];
                    } ?></td>
       </tr>
       <tr>
         <td>Общежитие</td>
         <td><?php  if (isset($student[0]['Hostel'][0]['name'])) {
                       echo $student[0]['Hostel'][0]['name'];
                    } ?></td>
         <td>Комната</td>
         <td><?php  if (isset($student[0]['Hostel'][0]['HostelsStudentinfo']['room'])) {
                       echo $student[0]['Hostel'][0]['HostelsStudentinfo']['room'];
                    } ?></td>
         <td>Заплачено до</td>
         <td><?php  if (isset($student[0]['Hostel'][0]['HostelsStudentinfo']['paid'])) {
                       echo $student[0]['Hostel'][0]['HostelsStudentinfo']['paid'];
                    } ?></td>
       </tr>
       <tr>
         <td><?php 
         foreach($order as $element):
           echo 'Приказ'; ?> <br><br>
         <?php  
         endforeach;
         ?></td>
         <td><?php 
         foreach($order as $element):
           echo $element['Ordertype']['name']; ?> <br>
         <?php 
         endforeach;
         ?></td>
         <td><?php 
         foreach($order as $element):
           echo 'Номер'; ?> <br><br>
         <?php  
         endforeach;
         ?></td>
         <td><?php 
         foreach($order as $element):
           echo $element['Order']['number']; ?> <br><br>
         <?php 
         endforeach;
         ?></td>
         <td><?php 
         foreach($order as $element):
           echo 'Дата'; ?> <br><br>
         <?php  
         endforeach;
         ?></td>
         <td><?php 
         foreach($order as $element):
           echo $element['Order']['date']; ?> <br>
         <?php 
         endforeach;
         ?></td>
       </tr>
     </table>
 </fieldset>
 </div>